const express=require('express')
const productRouter=require('./product')
const orderRouter=require('./order')
const userRouter=require('./user')
const shoppingRouter=require('./shopping')
const app=express()
app.listen(3000)
app.use('/user',userRouter)
app.use('/product',productRouter)
app.use('/product',orderRouter)
app.use('/product',shoppingRouter)
//  使用内置中间件转post传参
app.use(express.urlencoded({
    extended:true
}))
